package com.bupt.jack.model;

import java.sql.Timestamp;

/**
 * GroupItem entity. @author MyEclipse Persistence Tools
 */

public class GroupItem implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 3498931009446841944L;
	private Long id;
	private String name;
	private Double originalPrice;
	private Double salePrice;
	private Timestamp startTime;
	private Timestamp endTime;
	private String detail;
	private String purchaseRule;
	private Long cityId;
	private Long districtId;
	private Long category;
	private Long subclass;
	private Long shopId;
	private Integer groupSum;
	private Integer limitiedSum;

	// Constructors

	/** default constructor */
	public GroupItem() {
	}

	/** minimal constructor */
	public GroupItem(Long id, String name, Double originalPrice,
			Double salePrice, Timestamp startTime, Timestamp endTime,
			Long cityId, Long districtId, Long category, Long subclass,
			Long shopId) {
		this.id = id;
		this.name = name;
		this.originalPrice = originalPrice;
		this.salePrice = salePrice;
		this.startTime = startTime;
		this.endTime = endTime;
		this.cityId = cityId;
		this.districtId = districtId;
		this.category = category;
		this.subclass = subclass;
		this.shopId = shopId;
	}

	/** full constructor */
	public GroupItem(Long id, String name, Double originalPrice,
			Double salePrice, Timestamp startTime, Timestamp endTime,
			String detail, String purchaseRule, Long cityId, Long districtId,
			Long category, Long subclass, Long shopId, Integer groupSum,
			Integer limitiedSum) {
		this.id = id;
		this.name = name;
		this.originalPrice = originalPrice;
		this.salePrice = salePrice;
		this.startTime = startTime;
		this.endTime = endTime;
		this.detail = detail;
		this.purchaseRule = purchaseRule;
		this.cityId = cityId;
		this.districtId = districtId;
		this.category = category;
		this.subclass = subclass;
		this.shopId = shopId;
		this.groupSum = groupSum;
		this.limitiedSum = limitiedSum;
	}

	// Property accessors

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Double getOriginalPrice() {
		return this.originalPrice;
	}

	public void setOriginalPrice(Double originalPrice) {
		this.originalPrice = originalPrice;
	}

	public Double getSalePrice() {
		return this.salePrice;
	}

	public void setSalePrice(Double salePrice) {
		this.salePrice = salePrice;
	}

	public Timestamp getStartTime() {
		return this.startTime;
	}

	public void setStartTime(Timestamp startTime) {
		this.startTime = startTime;
	}

	public Timestamp getEndTime() {
		return this.endTime;
	}

	public void setEndTime(Timestamp endTime) {
		this.endTime = endTime;
	}

	public String getDetail() {
		return this.detail;
	}

	public void setDetail(String detail) {
		this.detail = detail;
	}

	public String getPurchaseRule() {
		return this.purchaseRule;
	}

	public void setPurchaseRule(String purchaseRule) {
		this.purchaseRule = purchaseRule;
	}

	public Long getCityId() {
		return this.cityId;
	}

	public void setCityId(Long cityId) {
		this.cityId = cityId;
	}

	public Long getDistrictId() {
		return this.districtId;
	}

	public void setDistrictId(Long districtId) {
		this.districtId = districtId;
	}

	public Long getCategory() {
		return this.category;
	}

	public void setCategory(Long category) {
		this.category = category;
	}

	public Long getSubclass() {
		return this.subclass;
	}

	public void setSubclass(Long subclass) {
		this.subclass = subclass;
	}

	public Long getShopId() {
		return this.shopId;
	}

	public void setShopId(Long shopId) {
		this.shopId = shopId;
	}

	public Integer getGroupSum() {
		return this.groupSum;
	}

	public void setGroupSum(Integer groupSum) {
		this.groupSum = groupSum;
	}

	public Integer getLimitiedSum() {
		return this.limitiedSum;
	}

	public void setLimitiedSum(Integer limitiedSum) {
		this.limitiedSum = limitiedSum;
	}

}